package cn.sendto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.CourseEntity;

public class CourseMapper implements IRowMapper<CourseEntity> {

	@Override
	public CourseEntity rowMapper(ResultSet rs) throws SQLException {
		CourseEntity entity = new CourseEntity();
		
		try {
			entity.setCourseId(rs.getInt("courseid"));
			entity.setCourseName(rs.getString("coursename"));
		} catch (Exception e) {
			// TODO: handle exception
		}
		return entity;
	}
	
	
}
